From theseas!Princeton.EDU!cek Sat, 26 Feb 94 01:54:24 EET
Received: by kriton.UUCP (V1.16/Amiga)
id AA00000; Sat, 26 Feb 94 01:54:24 EET
Received: by theseas.ntua.gr with UUCP; Wed, 23 Feb 1994 02:30:54 +0200
Received: from eunet.EU.net by pythia.ics.forth.gr via FORTHnet with SMTP;
id AA21883 (5.65c/FORTH-ICS-3.0-MHS-7.0); Wed, 23 Feb 1994 02:11:47 +0200
Received: from localhost (uunet@localhost) by eunet.EU.net (8.6.4/8.6.4) with UUCP id BAA23735 for ariadne!theseas!kriton!kyrimis; Wed, 23 Feb 1994 01:08:30 +0100
Received: from Princeton.EDU by relay1.UU.NET with SMTP
(5.61/UUNET-internet-primary) id AAwekm15991; Tue, 22 Feb 94 19:07:22 -0500
Received: from fs.Princeton.EDU by Princeton.EDU (5.65b/2.105/princeton)
id AA03584; Tue, 22 Feb 94 19:05:40 -0500
Received: by cs.Princeton.EDU (4.1/1.105)
id AA29553; Tue, 22 Feb 94 19:05:38 EST
Received: from A.GP.CS.CMU.EDU by cs.Princeton.EDU (4.1/1.105)
id AA29491; Tue, 22 Feb 94 19:04:56 EST
Message-Id: <9402230004.AA29491@cs.Princeton.EDU>
Date: Tue, 22 Feb 94 19:01:04 EST
Errors-To: rayshade-request@cs.Princeton.EDU
Remailed-Date: Tue Feb 22 19:05:01 EST 1994
From: Mark.Maimone@A.GP.CS.CMU.EDU
To: rayshade-users@CS.Princeton.EDU
Subject: Z buffer fix
Hi all,
Thanks to Craig(!) for helping me out... if you want to fix up the
Z buffer code (so that it outputs Z values rather than eye<->object distances),
add this one line (sob!) to the bottom of libshade/viewing.c:
if (hitlist.nodes != 0)
{
Float d = hitlist.data[0].dist;
*** d *= dotp(&Camera.dir, &hitlist.data[0].ray.dir); ***